<div class="title">{if 'add' eq $evenval}Add{else}Edit{/if} Vendor</div>
<br /><br />
<form  action="{geturl plugin='_this' method='null'}" method="post" enctype="multipart/form-data">
<!--<form action="{$url}" method="post">-->
<input type="hidden" name="action" value="doSubmitVendor" />
<input type="hidden" name="event" value="{$evenval}" />
<input type="hidden" name="id" value="{$usr.vendor_id}" />

<table border=0>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Vendor<br />Name:</td>
    <td><input type="text" name="vendor_name" value="{$usr.vendor_name}" class="input_text" /></td>
</tr>


<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Vendor<br />Description<br />text:</td>
    <td><textarea name="vendor_description">{$usr.vendor_description}</textarea></td>
</tr>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Active</td>
    <td><input type="checkbox" name='vendor_active' class="input_text" value="Y" {if $usr.vendor_active == 'Y' or $usr.vendor_active == 'on'}checked{/if} /></td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">City:</td>
    <td><input type="text" name="vendor_city" value="{$usr.vendor_city}" class="input_text" /></td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">StateCode:</td>
    <td><input type="text" name="vendor_stateprovincecode" value="{$usr.vendor_stateprovincecode}" class="input_text" size="2" maxlength="2" /></td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">ZIP:</td>
    <td><input type="text" name="vendor_postalcode" value="{$usr.vendor_postalcode}" class="input_text"/></td>
</tr>




<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Logo:</td>
    <td align="center">{if '' eq $usr.vendor_imgsmall} No logo image {else}<img src="{$hroot}inventory/{$usr.vendor_imgsmall}" alt="&nbsp; Vendor Logo Here &nbsp;" border="1">{/if}</td>
</tr>
<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Upload Logo:</td>
    <td ><input type="file" name="vendor_imgsmall" value="" ></td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">V-File:</td>
    <td align="center">{if '' eq $usr.vendor_file}No V-File{else}{$usr.vendor_file}{/if}</td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;">Upload V-File:</td>
    <td ><input type="file" name="vendor_file" value="" ></td>
</tr>

<tr class="{cycle values="dark,light"}">
    <td style="padding-right:5px; text-align:right;"></td>
    <td>
        <input type="submit" class="button" />
        &nbsp;&nbsp;
        <input type="button" value=" Cancel " class="button" onclick="javascript: window.location.href='?path=orderslist,vendorslist'" />
    </td>
</tr>
</form>

</table>

